package com.example.houqin_oa.dubbo;

import com.example.comment_oa.dubbo.RepairRecordServiceDubbo;
import com.example.comment_oa.pojos.RepairRecord;
import com.example.houqin_oa.service.RepairRecordService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description:更换流程
 * @Author:陈旭良
 * @Documents_And_Settings:liang
 * @Date:2023-02-08 20:03
 * @Entry_Name:my_springcloud_project01cangku
 */
@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class RepairRecordServiceDubboImpl implements RepairRecordServiceDubbo {
    @Autowired
    RepairRecordService repairRecordService;

    //查询更换未审批
    @Override
    public List<RepairRecord> conAllRepair(){
        return repairRecordService.conAllRepair();
    }
    //修改物品审批
    @Override
    public boolean upRepair(RepairRecord repairRecord){
        return repairRecordService.upRepair(repairRecord);
    }

}
